import React, { Component } from "react";

class CommentsList extends Component {
  render() {
    return (
      <div>
        <div className="comments-list">
          {this.props.list&&this.props.list.map((v) => (
            <div key={v.id}>
              <div>评论人：{v.author}</div>
              <div>评论内容：{v.content}</div>
            </div>
          ))}
        </div>
      </div>
    );
  }
}

export default CommentsList;
